﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;

namespace Common
{
    //TODO:如果需要自定义消息数据和格式，需要进行扩展

    /// <summary>
    /// 日志辅助类。
    /// </summary>
    public static class LogHelper
    {
        private const string LogName = "Log.Log";

        private static Logger logger;
        public static Logger Logger
        {
            get
            {
                if (logger == null)
                {
                    logger = LogManager.GetLogger(LogName);
                }

                return logger;
            }
        }
    }
}
